package com.chinacoal.microservice.api.model;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Range;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="待办类型查询参数",description="待办类型查询参数")
public class QueryUtaskCatParam {

	@ApiModelProperty(value ="查询类型", example="1-普通查询；2-高级查询；", required=true)
	@Range(min=1, max=2, message = "查询类型有误: qutryType")
	@NotNull(message = "查询类型不能为空: qutryType")
	private Integer qutryType;
	
	@ApiModelProperty(value ="模糊查询（按类型编码，类型名称）", example="", required=false)
	private String expression;
	
    @ApiModelProperty(value ="应用编码", example="可模糊查询", required=false)
    private String sysCode;
    
    @ApiModelProperty(value ="应用名称", example="可模糊查询", required=false)
    private String sysName;
    
    @ApiModelProperty(value ="类型编码", example="可模糊查询", required=false)
    private String typeCode;
    
    @ApiModelProperty(value ="类型名称", example="可模糊查询", required=false)
    private String typeName;
}
